#ifndef _LORAMC_API_H
#define _LORAMC_API_H
#include <stdbool.h>
#include <stdint.h>
/*!
 * Device states
 */
enum eDeviceState
{
    DEVICE_STATE_INIT,
    DEVICE_STATE_JOIN,
    DEVICE_STATE_SEND,
    DEVICE_STATE_CYCLE,
    DEVICE_STATE_SLEEP,
};

extern enum eDeviceState DeviceState;

extern void LW_LoRaMacInit(void);
extern bool LW_SendAckFrame(uint8_t port, uint8_t * data, uint16_t size);
extern bool LW_SendFrame(uint8_t port, uint8_t * data, uint16_t size);
extern void LW_LoRaMacJoin(void);
extern void StartSendFrame(void);

#endif/*_LORAMC_API_H*/


